package com.smartsoft.storage.filter;

public class MyFilter {
/*public class MyFilter implements Filter {

     private String encoding;  

    @Override  
    public void destroy() {}

    @Override  
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {  
        request.setCharacterEncoding(encoding);  
        response.setCharacterEncoding(encoding);  
        chain.doFilter(request, response);  
    }

    @Override  
    public void init(FilterConfig config) throws ServletException {  
        System.out.println("========" + config.getInitParameter("encoding") + "========");  
        encoding = config.getInitParameter("encoding");  
    }*/
}
